import axios from 'axios';

export default {

    update(params: any){
        return axios.put('/admin/admin',params)
    },

    store(params: any){
        return axios.post('/admin/admin',params)
    },

    index(params: any){
        return axios.get('/admin/admin',{
            params:params,
        })
    },

    show(id: number){
        return axios.get(`/admin/admin/${id}`)
    },
    info(){
        return axios.get('/admin/adminInfo')
    },
    refreshSecret(params: any){
        return axios.post('/admin/refreshSecret',params)
    },
    updatePassword(params: any){
        return axios.put('/admin/updatePassword',params)
    }
}
